package com.qr.bean.wmyw;

import java.math.BigDecimal;
import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/8/13 10:27:35
 * 分离出查询实体
 */
@ApiModel(value = "qr_user_coupon", description = "用户优惠券")
@TableName(value = "qr_user_coupon")
public class QrUserCouponView implements Serializable {
	@ApiModelProperty(value = "标识id")
	@TableId(type = IdType.AUTO,value = "user_coupon")
	@NotNull(message = "标识id不能为空")
	private Integer user_coupon;
	@ApiModelProperty(value = "运营中心id")
	@TableField(value="oc_id")
	private Integer oc_id;
	@ApiModelProperty(value = "店铺/门店id")
	@TableField(value="shop_id")
	private Integer shop_id;
	@ApiModelProperty(value = "用户id")
	@TableField(value="uid")
	private Integer uid;
	@ApiModelProperty(value = "红包金额")
	@TableField(value="full_money")
	private BigDecimal full_money;
	@ApiModelProperty(value = "红包类型:无门槛=1 满减=2")
	@TableField(value="coupon_type")
	@NotNull(message = "红包类型不能为空")
	private Integer coupon_type;
	@ApiModelProperty(value = "满减条件")
	@TableField(value="off_money")
	private BigDecimal off_money;
	@ApiModelProperty(value = "时间类型:固定日期=1 按领券日起=2")
	@TableField(value="time_type")
	private Integer time_type;
	@ApiModelProperty(value = "开始时间")
	@TableField(value="start_time")
	private Timestamp start_time;
	@ApiModelProperty(value = "结束时间")
	@TableField(value="end_time")
	private Timestamp end_time;
	@ApiModelProperty(value = "有效天数")
	@TableField(value="duration")
	private Integer duration;
	@ApiModelProperty(value = "创建时间")
	@TableField(value="create_time")
	private Timestamp create_time;
	@ApiModelProperty(value = "红包数量")
	@TableField(value="all_num")
	private Integer all_num;
	@ApiModelProperty(value = "已领数量")
	@TableField(value="off_num")
	private Integer off_num;
	@ApiModelProperty(value = "每人限领")
	@TableField(value="one_num")
	private Integer one_num;
	@ApiModelProperty(value = "活动公用:公用=1 单独=2")
	@TableField(value="use_union")
	private Integer use_union;
	@ApiModelProperty(value = "是否可用:未使用=1 已使用=2 已过期=3")
	@TableField(value="status")
	private Integer status;
	@ApiModelProperty(value = "使用时间")
	@TableField(value="use_time")
	private Timestamp use_time;
	@ApiModelProperty(value = "过期时间")
	@TableField(value="expired_time")
	private Timestamp expired_time;
	@ApiModelProperty(value = "数据版本字段")
	@TableField(value="version_id")
	@Version
	private Integer version_id;

 
	public Integer getUser_coupon() {
		return user_coupon;
	}
	public void setUser_coupon(Integer user_coupon) {
		this.user_coupon = user_coupon;
	}
 
	public Integer getOc_id() {
		return oc_id;
	}
	public void setOc_id(Integer oc_id) {
		this.oc_id = oc_id;
	}
 
	public Integer getShop_id() {
		return shop_id;
	}
	public void setShop_id(Integer shop_id) {
		this.shop_id = shop_id;
	}
 
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
 
	public BigDecimal getFull_money() {
		return full_money;
	}
	public void setFull_money(BigDecimal full_money) {
		this.full_money = full_money;
	}
 
	public Integer getCoupon_type() {
		return coupon_type;
	}
	public void setCoupon_type(Integer coupon_type) {
		this.coupon_type = coupon_type;
	}
 
	public BigDecimal getOff_money() {
		return off_money;
	}
	public void setOff_money(BigDecimal off_money) {
		this.off_money = off_money;
	}
 
	public Integer getTime_type() {
		return time_type;
	}
	public void setTime_type(Integer time_type) {
		this.time_type = time_type;
	}
 
	public Timestamp getStart_time() {
		return start_time;
	}
	public void setStart_time(Timestamp start_time) {
		this.start_time = start_time;
	}
 
	public Timestamp getEnd_time() {
		return end_time;
	}
	public void setEnd_time(Timestamp end_time) {
		this.end_time = end_time;
	}
 
	public Integer getDuration() {
		return duration;
	}
	public void setDuration(Integer duration) {
		this.duration = duration;
	}
 
	public Timestamp getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}
 
	public Integer getAll_num() {
		return all_num;
	}
	public void setAll_num(Integer all_num) {
		this.all_num = all_num;
	}
 
	public Integer getOff_num() {
		return off_num;
	}
	public void setOff_num(Integer off_num) {
		this.off_num = off_num;
	}
 
	public Integer getOne_num() {
		return one_num;
	}
	public void setOne_num(Integer one_num) {
		this.one_num = one_num;
	}
 
	public Integer getUse_union() {
		return use_union;
	}
	public void setUse_union(Integer use_union) {
		this.use_union = use_union;
	}
 
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
 
	public Timestamp getUse_time() {
		return use_time;
	}
	public void setUse_time(Timestamp use_time) {
		this.use_time = use_time;
	}
 
	public Timestamp getExpired_time() {
		return expired_time;
	}
	public void setExpired_time(Timestamp expired_time) {
		this.expired_time = expired_time;
	}
 
	public Integer getVersion_id() {
		return version_id;
	}
	public void setVersion_id(Integer version_id) {
		this.version_id = version_id;
	}

}